package com.insthub.BeeFramework.Utils;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
public class TouchViewPager extends ViewPager {
	private float downX = 0;
	public TouchViewPager(Context context) {
		super(context);
	}
	
	public TouchViewPager(Context context,AttributeSet attributeSet) 
	{
		super(context,attributeSet);
	}

	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
		try {
			if(ev.getAction() == MotionEvent.ACTION_DOWN)
			{
				downX = ev.getX();
			}
			return super.onInterceptTouchEvent(ev);
		} catch (IllegalArgumentException e) {
			return false;
		}
	}
	
	
}
